package com.ddstation.crm.organization_structure.mapper;

import com.ddstation.crm.organization_structure.entity.DtInvsOrganizationStructureEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DtInvsOrganizationStructureMapper {
	List<DtInvsOrganizationStructureEntity> select(@Param("institutionId") String institutionId,@Param("orgId") Integer orgId);
	List<DtInvsOrganizationStructureEntity> selectJurisdictionByOgrId(@Param("orgId") Integer orgId);
	DtInvsOrganizationStructureEntity selectTopLevel(@Param("institutionId") String institutionId);
	DtInvsOrganizationStructureEntity selectByPK(@Param("orgId") int orgId);
	List<DtInvsOrganizationStructureEntity> selectSubDept(@Param("pOrgId") int orgId);
	int selectIsManager(@Param("institutionId") String institutionId,@Param("supervisorId") int supervisorId);
	int selectOrgId(@Param("institutionId") String institutionId,@Param("supervisorId") int supervisorId);
	int insert(DtInvsOrganizationStructureEntity orgStruct);
	int update(DtInvsOrganizationStructureEntity orgStruct);
	int delete(DtInvsOrganizationStructureEntity orgStruct);
}
